<!DOCTYPE html>
<html lang="en">
<head>
  <title>TikTok Songs ${time} - Best Tik Tok Music & Top 10 Most Popular TikTok Dance Songs ${time} | GugeeData</title>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width">
  <meta name="baidu-site-verification" content="7Kv8mw99Qh" />
  <meta name="google-site-verification" content="YPMm_1_f59WXKSd04F1LGCjKeDGVrf_ajrylNKEDtqg" />
  <meta name="keywords" content=" TikTok Videos, TikTok Dance Songs, Popular TikTok Songs, TikTok Sounds, TikTok Music">
  <meta name="description" content="It is a list of Top 10 most popular TikTok songs ${time}.">
  <meta property="og:title" content="TikTok Songs ${time} - Best Tik Tok Music & Top 10 Most Popular TikTok Dance Songs ${time}| GugeeData">
  <meta property="og:description" content="It is a list of Top 10 most popular TikTok songs ${time}.">
  <meta property="og:url" content="${contextPath}/tiktok/sounds">
  <meta property="og:type" content="music.playlist">
  <meta property="og:site_name" content="GugeeData">
  <meta name="twitter:title" content="TikTok Songs 2020 - Best Tik Tok Music & Top 10 Most Popular TikTok Dance Songs ${time} | GugeeData">
  <meta name="twitter:description" content="It is a list of Top 10 most popular TikTok songs ${time}.">
  <link rel="icon" href="${request.contextPath}/static/img/favicon.ico" type="image/x-icon" />
  <link rel="shortcut icon" href="${request.contextPath} /static/img/favicon.ico" type="image/x-icon" />
  <link rel="stylesheet" href="${request.contextPath}/static/css/reset.css">
  <link rel="stylesheet" href="${request.contextPath}/static/css/common.css">
  <link rel="stylesheet" href="${request.contextPath}/static/css/sound.css">
</head>
<body>
  <#include "../header_new.ftl">
  <main>
    <section>
      <div class="wrapper wrap-hashtag">
        <h1>TikTok Songs ${time} - Best TikTok Music & Popular TikTok Dance Songs</h1>
        <h3>It is a list of latest hit TikTok songs in ${time}.</h3>
        <div class="main-content">
          <table>
            <thead>
              <tr>
                <th align="left" width="30%">Sound Info</th>
                <th width="10%">Videos</th>
                <th width="15%">Video Growth Trend</th>
                <th align="left" width="25%">Top3 Videos</th>
                <th width="10%">Action</th>
              </tr>
            </thead>
            <tbody>
              <#list dataList as data>
                <tr>
                  <td>
                    <div class="info">
                      <#if data.coverMedium != ''>
                        <img src="${data.coverMedium}" alt="${data.title}">
                      <#else>
                        <img src="${request.contextPath}/static/img/Music.png" alt="${data.title}"/>
                      </#if>
                      <div class="info-con">
                        <div class="name">
                          ${data.title}
                        </div>
                        <div class="author">
                          ${data.author}
                        </div>
                      </div>
                    </div>
                  </td>
                  <td align="center">
                    <#assign userCount=myController.getNumber(data.userCount)>${userCount}
                  </td>
                  <td>
                    <div class="echarts-con" id="echartsCon${data_index}"></div>
                  </td>
                  <td>
                    <div class="videos">
                      <#list data.topVideos as video>
                        <div class="video-item" onmouseover="showSoundMask(this)" onmouseout="hideSoundMask(this)">
                          <img src="${video.cover}" alt="TikTok analysis">
                          <div class="bottom">
                            <i class="iconfont iconic_play"></i>
                            <div>
                              <#assign playCount=myController.getNumber(video.diggCount)>${playCount}
                            </div>
                          </div>
                          <div class="mask">
                            <button class="small" onclick="toPlay('${video.shareUrl}')">Play</button>
                          </div>
                        </div>
                      </#list>
                    </div>
                  </td>
                  <td>
                    <div class="td-action">
                      <div class="red">
                        <a href="${contextPath}/tiktok/sounds/${data.mid?c}">
                          <i class="iconfont iconfenxi3"></i>
                        </a>
                      </div>
                    </div>
                  </td>
                </tr>
              </#list>
            <tr></tr>
            </tbody>
            <tfoot>
              <tr>
                <td colspan="5">
                  <#if login != false>
                    <a href="https://tk.gugeedata.com/#/elements/sounds">View More</a>
                    <#else>
                      <a href="javascript:;" onclick="toLogin()">View More</a>
                  </#if>
                </td>
              </tr>
            </tfoot>
          </table>
        </div>
      </div>
    </section>
  </main>
  <#include "../footer.ftl">
  <script src="${request.contextPath}/static/plugins/echarts.min.js"></script>
  <script>
    function showSoundMask(e) {
      e.querySelector('.mask').style.display = 'flex'
    }
    function hideSoundMask(e) {
      e.querySelector('.mask').style.display = 'none'
    }
    function toPlay(url) {
      window.open(url)
    }
    <#list dataList as data>
    let chart${data_index} = echarts.init(document.getElementById('echartsCon${data_index}'))
    let data${data_index} = []
    <#list data.videoGrowths as growth>
    data${data_index}.push(${growth.userGrowth?c})
    </#list>
    let option${data_index} = {
      xAxis: {
        show: false,
        type: 'category'
      },
      tooltip: {
        formatter: '{a}:{c}'
      },
      grid: {
        show: true,
        top: 0,
        left: 0,
        right: 0,
        bottom: 0,
        borderWidth: 0
      },
      yAxis: {
        show: false,
        type: 'value',
        splitLine: {
          show: false// 不显示网格线
        }
      },
      series: [{
        data: data${data_index},
        type: 'line',
        showSymbol: false,
        smooth: true,
        zlevel: 5,
        symbolSize: 8,
        lineStyle: {
          width: 1
        },
        areaStyle: {
          normal: {
            opacity: 0.3
          }
        },
        itemStyle: {
          normal: {
            color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
              offset: 0,
              color: '#1890FF'
            }, {
              offset: 1,
              color: '#FFF'
            }]),
            lineStyle: {
              color: '#1890FF' // 改变折线颜色
            }
          }
        }
      }]
    }
    chart${data_index}.setOption(option${data_index});
    </#list>
  </script>
</body>
</html>
